//
//  main.m
//  ipa_dumper491
//
//  Created by philip on 12/9/15.
//  Copyright © 2015 7659. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AppDelegate.h"

#include "dump.h"
#include "KYAppInfoManager.h"

#define DCIM_PATH @"/private/var/mobile/Media/DCIM"

int main(int argc, char * argv[]) {
//    
//    NSString *homeDir = NSHomeDirectory();
//
//    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES);
//    
//    NSString *docDir = [paths objectAtIndex:0];
//    
//    NSString* home = [NSHomeDirectory()stringByAppendingPathComponent:@"Documents"];
//    
//    
//    
//   [KYAppInfoManager installedAppDetailInfo];
//    
//    
//    NSURL* url = [KYAppInfoManager bundleURL4bundleIdentifier:@"amin.game.pool.billiards.v2"];
////    NSURL* url = [KYAppInfoManager bundleURL4bundleIdentifier:@"com.youku.YouKu"];
//    
//    NSString* path = [url absoluteString];
//    path = [path substringFromIndex:7];
//    
//    generateRelativePath(path, homeDir);
//    
//    
//    
//    NSString* string = [NSString stringWithFormat:@"%@/", path];
//    
//    dump([path UTF8String], "../sound.swf");
//
//    while (1) {
//        sleep(10);
//    }
//    
//    return 0;
    @autoreleasepool {
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
    }
}
